/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the koala4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * @Author: GuoYang
 */
package com.koalacloud.koala.zhaikucloud.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 商品表
 *注意表字段必须含有 create_time、create_by、update_time、update_by字段，若表不包含则在生成实体代码去掉继承BaseEntity
 * @Author: GuoYang
 * @date 2022-01-27 10:38:36
 */
@Data
@TableName("mall_product")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "商品表")
public class MallProduct extends Model<MallProduct> {

    /**
     * 商品id，同时也是商品编号
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "商品id，同时也是商品编号")
    private String id;

    /**
     * 商品标题
     */
    @Schema(description = "商品标题")
    private String title;

    /**
     * 商品卖点
     */
    @Schema(description = "商品卖点")
    private String sellPoint;

    /**
     * 商品价格
     */
    @Schema(description = "商品价格")
    private BigDecimal price;

    /**
     * 库存数量
     */
    @Schema(description = "库存数量")
    private Integer num;

    /**
     * 售卖数量限制
     */
    @Schema(description = "售卖数量限制")
    private Integer limitNum;

    /**
     * 商品图片
     */
    @Schema(description = "商品图片")
    private String image;

    /**
     * 所属分类
     */
    @Schema(description = "所属分类")
    private Long cid;

    /**
     * 商品状态 1正常 0下架
     */
    @Schema(description = "商品状态 1正常 0下架")
    private Integer status;

    /**
     * 售卖限制,1-正常，0-已售
     */
    @Schema(description = "售卖限制,1-正常，0-已售")
    private Integer limitStatus;

    /**
     * 身份
     */
    @Schema(description = "身份")
    private String customType;

    /**
     * 本金
     */
    @Schema(description = "本金")
    private BigDecimal principal;

    /**
     * 利息
     */
    @Schema(description = "利息")
    private BigDecimal interest;

    /**
     * 逾期时间
     */
    @Schema(description = "逾期时间")
    private Integer overdueMonth;

    /**
     * 诉讼佣金比例
     */
    @Schema(description = "诉讼佣金比例")
    private String commission1;

    /**
     * 非诉讼佣金比例
     */
    @Schema(description = "非诉讼佣金比例")
    private String commission2;

    /**
     * 债权人所在地
     */
    @Schema(description = "债权人所在地")
    private String creditorAddress;

    /**
     * 债务人所在地
     */
    @Schema(description = "债务人所在地")
    private String debtAddress;

    /**
     * 是否有担保
     */
    @Schema(description = "是否有担保")
    private Integer guarantee;

    /**
     * 是否有抵押
     */
    @Schema(description = "是否有抵押")
    private Integer mortgage;

    /**
     * 是否失联
     */
    @Schema(description = "是否失联")
    private Integer contact;

    /**
     * 是否有偿还能力
     */
    @Schema(description = "是否有偿还能力")
    private Integer pay;

    /**
     * 凭证是否齐全
     */
    @Schema(description = "凭证是否齐全")
    private Integer voucher;

    /**
     * 佣金比例高
     */
    @Schema(description = "佣金比例高")
    private Integer hight;

    /**
     * 法律关系明确
     */
    @Schema(description = "法律关系明确")
    private Integer law;

    /**
     * 详细信息
     */
    @Schema(description = "详细信息")
    private String content;

    /**
     * 联系人
     */
    @Schema(description = "联系人")
    private String contactPerson;

    /**
     * 联系人电话
     */
    @Schema(description = "联系人电话")
    private String tel;


}
